
package tests.laurens.cajo_remote_stub;

import gnu.cajo.invoke.Remote;

import java.util.ArrayList;

import combat.dudes.server.protocol.implementation.Track;


/**
 * @author Laurens Andriessen
 * @version 1.0
 */
public class CakeIngredient implements CakeIngredientInt {

	private String flavour;
	private static String[] flavours = { "Sugar", "Spice", "Something nice", "Chemical X" };

	private ArrayList<Remote> subIngredients = new ArrayList<Remote>();

	public CakeIngredient() throws Exception {
		this.flavour = flavours[(int) Math.floor(flavours.length * Math.random())];
		this.subIngredients.add(new Remote(new Track()));
		this.subIngredients.add(new Remote(new Track()));
	}

	public String getFlavour() {
		return flavour;
	}
	public void setFlavour(String flavour) {
		this.flavour = flavour;
	}

	public ArrayList<Remote> getSubIngredients() {
		return subIngredients;
	}

}
